package com.ourteam.frame.web;

public class TreeViewNodeBean {

	private String id;

	private String parent;

	private String nodeConfigId;

	private String text;

	private String icon;

	private String selectedIcon;

	private String color;

	private String backColor;

	private String href;

	private String actionGroupId;
	
	private boolean disabled;
	
	private boolean disableCheckbox;

	private boolean selectable = true;

	private boolean isLeaf;

	private boolean showTag;

	private int childCount;

	private boolean group;

	private int level;

	private Object nodeData;

	private String[] tags;

	private TreeViewNodeBean[] nodes;

	private TreeViewNodeStateBean state = new TreeViewNodeStateBean();

	public String getNodeConfigId() {
		return nodeConfigId;
	}

	public void setNodeConfigId(String nodeConfigId) {
		this.nodeConfigId = nodeConfigId;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public String getSelectedIcon() {
		return selectedIcon;
	}

	public void setSelectedIcon(String selectedIcon) {
		this.selectedIcon = selectedIcon;
	}

	public String getColor() {
		return color;
	}

	public void setColor(String color) {
		this.color = color;
	}

	public String getBackColor() {
		return backColor;
	}

	public void setBackColor(String backColor) {
		this.backColor = backColor;
	}

	public String getHref() {
		return href;
	}

	public void setHref(String href) {
		this.href = href;
	}

	public boolean isSelectable() {
		return selectable;
	}

	public void setSelectable(boolean selectable) {
		this.selectable = selectable;
	}

	public String[] getTags() {
		return tags;
	}

	public void setTags(String[] tags) {
		this.tags = tags;
	}

	public TreeViewNodeBean[] getNodes() {
		return nodes;
	}

	public void setNodes(TreeViewNodeBean[] nodes) {
		this.nodes = nodes;
	}

	public TreeViewNodeStateBean getState() {
		return state;
	}

	public void setState(TreeViewNodeStateBean state) {
		this.state = state;
	}

	public int getLevel() {
		return level;
	}

	public void setLevel(int level) {
		this.level = level;
	}

	public String getParent() {
		return parent;
	}

	public void setParent(String parent) {
		this.parent = parent;
	}

	public boolean getIsLeaf() {
		return isLeaf;
	}

	public void setIsLeaf(boolean isLeaf) {
		this.isLeaf = isLeaf;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public Object getNodeData() {
		return nodeData;
	}

	public void setNodeData(Object nodeData) {
		this.nodeData = nodeData;
	}

	public boolean isExpanded() {
		return state.isExpanded();
	}

	public void setExpanded(boolean expanded) {
		state.setExpanded(expanded);
	}

	public boolean isGroup() {
		return group;
	}

	public void setGroup(boolean group) {
		this.group = group;
	}

	public String getActionGroupId() {
		return actionGroupId;
	}

	public void setActionGroupId(String actionGroupId) {
		this.actionGroupId = actionGroupId;
	}

	public int getChildCount() {
		return childCount;
	}

	public void setChildCount(int childCount) {
		this.childCount = childCount;
	}

	public boolean isShowTag() {
		return showTag;
	}

	public void setShowTag(boolean showTag) {
		this.showTag = showTag;
	}

	public String getLabel() {
		return this.text;
	}

	public String getValue() {
		return this.id;
	}

	public String getKey() {
		return this.id;
	}

	public TreeViewNodeBean[] getChildren() {
		return this.nodes;
	}

	public boolean isDisabled() {
		return disabled;
	}

	public void setDisabled(boolean disabled) {
		this.disabled = disabled;
	}

	public boolean isDisableCheckbox() {
		return disableCheckbox;
	}

	public void setDisableCheckbox(boolean disableCheckbox) {
		this.disableCheckbox = disableCheckbox;
	}

}
